package com.janko.springbootbase.designmode.observer.v2nothread;

import com.janko.springbootbase.designmode.observer.v1thread.IHanFeiZi;
import com.janko.springbootbase.designmode.observer.v1thread.ILiSi;
import com.janko.springbootbase.designmode.observer.v1thread.LiSi;

/**
 * @Description 类文件说明
 * @Author nieyankang
 * @Version 1.0
 * @date {date} {time}
 */
public class HanFeiZi implements IHanFeiZi {
    ILiSi jianDie = new LiSi();

    @Override
    public void haveBreakfast() {
        System.out.println("韩非子:开始吃饭了...");
        this.jianDie.update("韩非子在吃饭了");
    }

    @Override
    public void haveFun() {
        System.out.println("韩非子:开始娱乐了...");
        this.jianDie.update("韩非子在娱乐了");
    }
}
